#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QAction>
#include <QIcon>
#include <QDebug>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QWidget>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setIconSize(QSize(64,64));
    this->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    toolbar = new myToolBar();

    this->addToolBar(toolbar);
    myWidget *centW = new myWidget();
    this->setCentralWidget(centW);

    connect(centW,&myWidget::b0_clicked,[=](){
        this->toolbar->show();
    });
}

MainWindow::~MainWindow()
{
    delete ui;
}
